package cn.lang.auth.controller;

import cn.lang.auth.common.utils.ret.Ret;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description 管理员测试
 * @author Lang 1102076808@qq.com
 * @date 2020-06-19 21:28
 */
@RequestMapping("/admin")
@RestController
public class AdminController {

	@RequiresPermissions("sys:admin:query")
	@RequestMapping("/query")
	public Ret query(){
		return Ret.success("管理员才能访问");
	}

	@RequiresPermissions("admin:add")
	@RequestMapping("/add")
	public Ret add(){
		return Ret.success("管理员才能访问");
	}
}
